package com.nmgsr.beans.responsedao;

import com.nmgsr.nettools.net.retrofit.BaseResponse;

import java.time.LocalDateTime;
import java.util.List;

public class ArticleRes extends BaseResponse {
    private Integer total;
    private List<Items> items;
    public Integer getTotal() {
        return total;
    }
    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<Items> getItems() {
        return items;
    }

    public void setList(List<Items> items) {
        this.items = items;
    }
    public static class Items {
        private Integer id;//主键ID
        private String title;//文章标题
        private String content;//文章内容
        private String coverImg;//封面图像
        private String state;//发布状态 已发布|草稿
        private Integer categoryId;//文章分类id
        private Integer createUser;//创建人ID
        private LocalDateTime createTime;//创建时间
        private LocalDateTime updateTime;//更新时间

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCoverImg() {
            return coverImg;
        }

        public void setCoverImg(String coverImg) {
            this.coverImg = coverImg;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public Integer getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(Integer categoryId) {
            this.categoryId = categoryId;
        }

        public Integer getCreateUser() {
            return createUser;
        }

        public void setCreateUser(Integer createUser) {
            this.createUser = createUser;
        }

        public LocalDateTime getCreateTime() {
            return createTime;
        }

        public void setCreateTime(LocalDateTime createTime) {
            this.createTime = createTime;
        }

        public LocalDateTime getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(LocalDateTime updateTime) {
            this.updateTime = updateTime;
        }
    }
}
